﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DataAccessApplicationBlockGettingStarted
{
    public partial class EditCustomerDialog : Form
    {
        public EditCustomerDialog()
        {
            InitializeComponent();
        }

        private void mnuItemOK_Click(object sender, EventArgs e)
        {
            this.customerBindingSource.EndEdit();
            this.DialogResult = DialogResult.OK;
        }

        private void mnuItemCancel_Click(object sender, EventArgs e)
        {
            this.customerBindingSource.CancelEdit();
            this.DialogResult = DialogResult.Cancel;
        }
    }
}